<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="_session_check.jsp" %>
<%@ page import="com.shopping.modean.*"%>
<%@ page import="com.shopping.service.*"%>
<%@ page import="com.shopping.util.*"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%
	CategoryService categoyService = new CategoryService();
	List<Category> categorys = categoyService.list();
%>

<!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="script/TV20.js"></script>
<title>用户列表</title>
</head>

<body>
  <script type="text/javascript">
  	addNode(-1,0,"所有分类","images/top.gif");
    <%
    	for(Category c : categorys) {
    		out.println("addNode(" + c.getPid() + "," + c.getId() + ",'" + c.getName() +"','images/top.gif')");
    	}
    %>
	showTV();    
  </script>

</body>
</html>